<template>
	<view class="msg-publish">
		<titleName :name="name" :back-show="true" />
		<view class="top-bgc">
			<image class="text" :src="resourceUrl+'mine-text-publish.png'" mode=""></image>
			<view class="publisher" mode="">
				郑州市生态环境保护局
			</view>
		</view>
		<view class="ul">
			<view class="li" @click="jumpRectificationRemind">
				<image class="icon" :src="resourceUrl+'publish-update.png'" mode=""></image>
				<text>整改期限提醒</text>
				<image class="right-arrow" :src="resourceUrl+'right-arrow.png'" mode=""></image>
			</view>
			<view class="li" @click="jumpEnvironmentalRemind">
				<image class="icon" :src="resourceUrl+'huanbao-publish.png'" mode=""></image>
				<text>环保资讯发布</text>
				<image class="right-arrow" :src="resourceUrl+'right-arrow.png'" mode=""></image>
			</view>
			<view class="li" @click="jumpWarningInform">
				<image class="icon" :src="resourceUrl+'warning-icon.png'" mode=""></image>
				<text>预警通知发布</text>
				<image class="right-arrow" :src="resourceUrl+'right-arrow.png'" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script setup>
	import titleName from '../../components/titleName.vue'
	import uploadFile from '../../request/uploadFile.js'
	import http from '../../request/index.js'
	import {
		resourceUrl
	} from '../../request/config'
	import {
		onShow,
		onLoad
	} from '@dcloudio/uni-app'
	import {
		ref
	} from 'vue'
	let name = ref('信息发布')
	let usertype = ref('')
	let customername = ref('')
	let img = ref("https://splendid.oss-cn-beijing.aliyuncs.com/static/imghazardouswaste/touxiang.png")

	let jumpRectificationRemind = () => {
		uni.navigateTo({
			url: "/minePageOther/rectificationremind/index"
		})
	}
	let jumpEnvironmentalRemind = () => {
		uni.navigateTo({
			url: "/minePageOther/environmentalremind/index"
		})
	}
	let jumpWarningInform = () => {
		uni.navigateTo({
			url: "/minePageOther/warninginform/index"
		})
	}

	onShow(() => {
		// admin.value = uni.getStorageSync('admin')
		// customername.value = uni.getStorageSync("customername1")
		// // console.log(customername.value, 'fds');
		// hbmobile.value = uni.getStorageSync("hbmobile")
		// departmentname.value = uni.getStorageSync("departmentname")
		// mobile.value = uni.getStorageSync("mobile")
		// uni.getStorageSync("TOKEN") ? tokenFloag.value = true : tokenFloag.value = false
		// if (tokenFloag.value) {

		// } else {
		// 	img.value = "https://splendid.oss-cn-beijing.aliyuncs.com/static/imghazardouswaste/touxiang.png"
		// }
		usertype.value = uni.getStorageSync('usertype')

	})
</script>

<style lang="scss" scoped>
	.msg-publish {
		width: 100vw;
		height: 100vh;

		.ul {
			width: 100vw;
			height: calc(100vh - 275upx - 160upx);
			background-color: rgb(243, 245, 247);
			padding-top: 20upx;

			.li:first-child {
				margin-top: 0upx !important;
			}

			.li {
				margin-top: 13upx;
				display: flex;
				align-items: center;
				padding-left: 40upx;
				width: 750rpx;
				height: 107rpx;
				background: #FFFFFF;

				.icon {
					width: 51rpx;
					height: 51rpx;

				}

				text {
					margin-left: 15upx;
					font-family: Source Han Sans CN;
					font-weight: 500;
					font-size: 31rpx;
					color: #333333;

				}

				.right-arrow {
					width: 15rpx;
					height: 25rpx;
					margin-left: 388upx;
				}
			}
		}

		.top-bgc {
			width: 100vw;
			height: 275rpx;
			background: url("https://splendid.oss-cn-beijing.aliyuncs.com/static/greenenterprise/publish-icon.png") no-repeat;
			background-size: 100% 100%;
			position: relative;
			padding: 70upx 0 0 42upx;

			.text {
				width: 447upx;
				height: 70upx;
			}

			.publisher {
				background: url("https://splendid.oss-cn-beijing.aliyuncs.com/static/greenenterprise/mine-text-bgc.png") no-repeat;
				background-size: 100% 100%;
				width: 300upx;
				height: 30upx;
				margin-top: 20upx;


				display: flex;
				align-items: center;
				padding-left: 24upx;


				font-family: Source Han Sans CN;
				font-weight: 500;
				font-size: 17rpx;
				color: #FEFEFE;
			}


		}
	}
</style>